home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010921-20020314 / 000301_lvm@cowlitz.com_Mon Jan 21 15:46:04 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  50 lines

  1. Article: 13136 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!btnet-peer0!btnet-peer!btnet!feeder.qis.net!sn-xit-02!supernews.com!postnews1.google.com!not-for-mail
  3. From: lvm@cowlitz.com (Larry Mann)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Using redirection when starting K95
  6. Date: 21 Jan 2002 12:00:33 -0800
  7. Organization: http://groups.google.com/
  8. Lines: 32
  9. Message-ID: <3d44a7c4.0201211200.7a8591b0@posting.google.com>
  10. NNTP-Posting-Host: 12.230.243.34
  11. Content-Type: text/plain; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Trace: posting.google.com 1011643233 19019 127.0.0.1 (21 Jan 2002 20:00:33 GMT)
  14. X-Complaints-To: groups-abuse@google.com
  15. NNTP-Posting-Date: 21 Jan 2002 20:00:33 GMT
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13136
  17.  
  18. Hello,
  19.  
  20. Some years ago I wrote several Unix shell scripts that called Kermit
  21. using redirection for both providing input from a Kermit script and
  22. any response output to a file.  This was done with HP-UX and C-Kermit
  23. communicating with a remote Kermit server.
  24.  
  25. I now need to move these scripts from HP-UX and C-Kermit to Windows
  26. 2000 Server and K95. I have installed a Unix shell on W2K and all is
  27. fine except the shell script lines that call Kermit, K95, do not seem
  28. to accept redirection, for example:
  29.    k95 < in.ksc > out.txt
  30. where in.ksc contains and is communicating with a remote Kermit
  31. server:
  32.    set line com1
  33.    set baud 9600
  34.    rem dir c:/temp
  35. This would capture a list of filenames from the remote server into
  36. out.txt for further processing in the shell script.
  37.  
  38. I understand that I could provide the script name as the first item on
  39. the Kermit command line, such as:  k95 in.ksc   and that's fine...
  40. but how can I capture the standard output from this script to a file,
  41. out.txt?
  42.  
  43. I've been away from Kermit for awhile so I may be missing the obvious,
  44. but any help or advise would be appreciated. Thanks,
  45.  
  46. Larry Mann
  47.  
  48. (I attempted to post a similar message earlier today it did appear to
  49. get listed so I am trying again)
  50.